package com.gouda.temporary.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gouda.temporary.dao.HongbaoSendLog;
import com.gouda.temporary.dao.TempHourOrdersMapper;
import com.gouda.temporary.vo.HongbaoSend;

@Service
public class HongBaoSendService {

	@Resource
	private HongbaoSendLog hongbaoSendLog;
	
	/**
	 * 根据userid cropd status 查找
	 */
	public List<HongbaoSend> selectHongBaoSend(String userId,String corpId,String status){
		return this.hongbaoSendLog.selectHongBaoSend(userId, corpId, status);
	}
	
	
	/**
	 * 根据status更新
	 */
	public int updateHongBaoSend(String userId,String corpId,String status){
		return this.hongbaoSendLog.updateHongBaoSend(userId, corpId, status);
	}
	
	/**
	 * 添加
	 */
	public int addHongBaoSend(HongbaoSend hongBaoSend){
		return this.hongbaoSendLog.addHongBaoSend(hongBaoSend);
	}
}




















